package com.sias.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

/**
 * @author 吴文杰
 * @version 1.0
 * @since 2023/6/14 17:24
 */
@Aspect
public class MyAspect {
  @Pointcut("execution(* com.sias.service.MyService.*())")
  public void pointCut() {}

  @Before("pointCut()")
  public void before(JoinPoint joinPoint){
    System.out.println("before");
  }
}
